package com.jiayang.hhotel.adapter;

import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.support.annotation.ColorInt;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.View;

import com.yanyusong.y_divideritemdecoration.Y_DividerItemDecoration;

/**
 * Created by Administrator on 2017/5/4 0004.
 */

public class DividerItemDecoration extends Y_DividerItemDecoration{

    public DividerItemDecoration(Context context, float lineWidthDp, @ColorInt int colorRGB) {
        super(context, lineWidthDp, colorRGB);
    }

    public DividerItemDecoration(Context context, int lineWidthDp, @ColorInt int colorRGB) {
        super(context, lineWidthDp, colorRGB);
    }

    @Override
    public boolean[] getItemSidesIsHaveOffsets(int itemPosition) {
        //顺时针顺序:left, top, right, bottom
        boolean[] isOffset = {false, false, false, true};
        return isOffset;
    }
}
